package cn.ycc1.demo.provider;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author ycc
 * @date 2025/5/10
 */
public class ProviderMain {
    public static void main(String[] args) throws Exception {
        // 加载 dubbo 配置文件
        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("classpath:spring-dubbo-provider.xml");

        context.start(); // 启动 Spring 容器
        System.out.println("Dubbo provider started!");

        // 阻塞防止退出
        System.in.read();
    }
}
